﻿<%          
Select Case Request("action")
	Case "admin_menu" : admin_menu()
	Case "admin_quit" : admin_quit()
        case else
        admin_main()
End Select
Sub admin_main()
%>
<html>
<head>
<title> 后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css.css" rel="stylesheet" type="text/css">
<script language=JavaScript src="../inc/admin.js"></script>
</head>
<%   if session("AdminName")="" or session("UserName")="" or session("AdminPurview")="" or session("LoginSystem")<>"Succeed" then
     response.write "您还没有登录或登录已超时，请<a href='index.asp' target='_parent'><font color='red'>返回登录</font></a>!"
     response.end
  end if %>
<body>
<table width="100%" height="75" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td width="280"><img src="../images/logo.gif" width="280" height="75" /></td>
    <td valign="top" background="../images/head_bg.gif"><table border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td><table border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="../images/head_menu1_bg1.gif" width="15" height="33" /></td>
            <td background="../images/head_menu1_bg2.gif"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
              <td width="18"><img src="../images/icon/icon27.gif"/></td>
                <td><a href='javascript:location.reload()' class="head1"><b>刷新</b></a>&nbsp;&nbsp;</td>
                <td width="18"><img src="../images/icon/icon2.gif"/></td>
                <td><a href="javascript:AdminOut()" class="head1"><b>安全注销</b></a>&nbsp;&nbsp;</td>
                <td width="18"><img src="../images/icon/icon3.gif"/></td>
                <td><a href="../" class="head1" target="_blank"><b>浏览首页</b></a></td>
              </tr>
            </table></td>
            <td><img src="../images/head_menu1_bg3.gif" width="15" height="33" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="40"><table border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="8" height="26"></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="6"></td>
  </tr>
</table>

<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝内容区域＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->

<table width="1004" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="200" align="right" id=frmTitle>
	
<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝左边菜单栏＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->

      <table width="194" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="30" background="../images/left_search_bg.gif">
		    <table border="0" align="left" cellpadding="0" cellspacing="0">
              <tr>
                 <td width="6" height="30"></td>
                 <td width="20" height="30"><img src="../images/icon/title_icon.gif"/></td>
                 <td><b><div id="topTitle1">列表导航</div></b></td>
              </tr>
            </table>
	      </td>
        </tr>
        <tr>
          <td align="center" background="../images/left_bg.gif" height="8"></td>
        </tr>
        <tr>
          <td background="../images/left_bg.gif" style="padding-left:2px;">
	        <iframe name="menu" src="?action=admin_menu" width="185" height="462" frameborder="0"></iframe>
	      </td>
        </tr>
        <tr>
          <td><img src="../images/left_bottom_bg.gif" width="194" height="7"></td>
        </tr>
      </table>
<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝左边菜单栏结束＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->
	
	</td>
    <td width="13"><a href="javascript:switchSysBar();" onFocus="this.blur()"><img src="../images/Btn_close.gif" border="0" width="6" height="56" name="arrow" id="arrow" alt="收缩"></a></td>
    <td valign="top">
	
<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝right＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->	
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="6"><img src="../images/right_bg1.gif" width="6" height="506" /></td>
        <td valign="top" background="../images/right_bg2.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="20" height="35"><img src="../images/icon/title_icon.gif"/></td>
            <td><b><div id="topTitle">管理首页</div></b></td>
			<td align="right"><img src="../images/right_right_icon.gif" width="15" height="15" /></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
		    <tr>
			  <td height="5"></td>
			</tr>
            <tr>
              <td valign="top"><iframe align="center" name="right" src="SysCome.asp" width="99%" height="456" frameborder="0"></iframe></td>
            </tr>
          </table></td>
        <td width="6"><img src="../images/right_bg3.gif" width="6" height="506" /></td>
      </tr>
    </table>

<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝right结束＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->
	
	</td>
    <td width="6">&nbsp;</td>
  </tr>
</table>




<!--＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝foot＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝-->

<table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="6"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="27" align="center" background="../images/foot_bg.gif" class="foot_drsc">
	  <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="foot_drsc">Copyright © 2009-2010 Martechina , All Rights Reserved.</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
<%
End Sub 
Sub admin_menu()
%><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css.css" rel="stylesheet" type="text/css" />
</head>


<style type="text/css"> 
	.menutitle{ cursor:pointer; margin-bottom: 0px;color:#646245; width:158px; padding:0px;font-weight:bold; border:0px ;}
	.submenu{ margin-bottom: 0em; }
</style>

<script language="javascript" type="text/javascript">
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function killErrors() {
return true;
}

window.onerror = killErrors;
dd
</script>
<body onselectstart="return false">
<%
ID = Request.QueryString("ID")
%>
<div id="masterdiv">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left" valign="top">	    
  <%if ID = 1 or ID = "" then%>
        <div class="menutitle" onClick="SwitchMenu('sub0')">
        	 <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="20" height="32"></td>
			  <td width="18"><img src="../images/icon/icon20.gif" alt="" border="0" align="absmiddle"></td>
			  <td><b>网站基本设置</b>	</td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		<span class="submenu" id="sub0" <%If id<>"" Then response.write("style='display: block;'")%>>
		<div>
		   		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td colspan="3" height="5"></td>
			</tr>			 
		    <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="SetSite.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='网站设置';">网站设置</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			<td> <a href="TemplateManager.asp?to=data_skin" target="right" onClick="top.document.getElementById('topTitle').innerHTML='模板管理';">模板管理<a> </td>
			</tr>
            <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			<td> <a href="NavigationList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='网站导航';">网站导航<a> </td>
			</tr>
             <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="AdminList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='网站管理员';">网站管理员</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="PassUpdate.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='修改密码';">修改密码</a></td>
			</tr>

			
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="Form.asp?action=formlist" target="right" onClick="top.document.getElementById('topTitle').innerHTML='表单管理';">表单管理</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="Form.asp?action=formback&fid=1" target="right" onClick="top.document.getElementById('topTitle').innerHTML='留言管理';">留言管理</a></td>
			</tr>			
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="DataManage.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='数据库管理';">数据库管理</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="FlashList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='Flash广告管理';">Flash广告管理</a></td>
			</tr>
             <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="NoSql.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='Sql注入管理';">Sql注入管理</a></td>
			</tr>
			 <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="FriendLinkList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='友情连接管理';">友情连接管理</a></td>
			</tr>
              <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="admin_sitemap_r.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='Sitemap管理';">Sitemap管理</a></td>
			</tr>
            <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="Admin_qq.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='QQ设置管理';">QQ设置管理</a></td>
			</tr>
			<tr>
			  <td colspan="3" height="5"></td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		</span>
        <div class="menutitle" onClick="SwitchMenu('sub1')">
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="20" height="32"></td>
			  <td width="18"><img src="../images/icon/icon21.gif" alt="" border="0" align="absmiddle"></td>
			  <td><b>企业信息管理</b>	</td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		<span class="submenu" id="sub1" <%If id<>"" Then response.write("style='display: block;'")%>>
		<div>
		   <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td colspan="3" height="5"></td>
			</tr>			 
		    <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="AboutList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='企业信息列表';">企业信息列表</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="AboutEdit.asp?Result=Add" target="right" onClick="top.document.getElementById('topTitle').innerHTML='增加企业信息';">增加企业信息</a></td>
			</tr>
			<tr>
			  <td colspan="3" height="5"></td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		</span>
        <div class="menutitle" onClick="SwitchMenu('sub2')">
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="20" height="32"></td>
			  <td width="18"><img src="../images/icon/icon22.gif" alt="" border="0" align="absmiddle"></td>
			  <td><b>新闻资讯管理</b>	</td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		<span class="submenu" id="sub2" <%If id<>"" Then response.write("style='display: block;'")%>>
		<div>
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td colspan="3" height="5"></td>
			</tr>			 
		    <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="NewsSort.asp?Action=Add&ParentID=0" target="right" onClick="top.document.getElementById('topTitle').innerHTML='新闻类别';">新闻类别</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="NewsList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='新闻列表';">新闻列表</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="NewsEdit.asp?Result=Add" target="right" onClick="top.document.getElementById('topTitle').innerHTML='增加新闻';">增加新闻</a></td>
			</tr>
			<tr>
			  <td colspan="3" height="5"></td>
			</tr>
		  </table>

		</div>
		</span>
<%
	end if
%>	      
       
<%
	if ID = 2 or ID = "" then
%>
        <div class="menutitle" onClick="SwitchMenu('sub3')">
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="20" height="32"></td>
			  <td width="18"><img src="../images/icon/icon12.gif" alt="" border="0" align="absmiddle"></td>
			  <td><b>产品展示管理</b></td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		<span class="submenu" id="sub3" <%If id<>"" Then response.write("style='display: block;'")%>>
		<div>
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td colspan="3" height="5"></td>
			</tr>			 
		    <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="ProductSort.asp?Action=Add&ParentID=0" target="right" onClick="top.document.getElementById('topTitle').innerHTML='产品类别';">产品类别</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="ProductList.asp" target="right" onClick="top.document.getElementById('topTitle').innerHTML='产品列表';">产品列表</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="ProductEdit.asp?Result=Add" target="right" onClick="top.document.getElementById('topTitle').innerHTML='增加产品';">增加产品</a></td>
			</tr>
			<tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="Form.asp?action=formback&fid=2" target="right" onClick="top.document.getElementById('topTitle').innerHTML='订单信息';">订单信息</a></td>
			</tr>
			
			<tr>
			  <td colspan="3" height="5"></td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		</span>

        <div class="menutitle" onClick="SwitchMenu('sub13')">
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="20" height="32"></td>
			  <td width="18"><img src="../images/icon/icon26.gif" alt="" border="0" align="absmiddle"></td>
			  <td><b>在线帮助</b>	</td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		<span class="submenu" id="sub13" <%If id<>"" Then response.write("style='display: block;'")%>>
		<div>
		  <table border="0" cellpadding="0" cellspacing="0">
		    <tr>
			  <td colspan="3" height="5"></td>
			</tr>			 
		    <tr>
			  <td width="35" height="24"></td>
			  <td width="18"><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a href="Help.asp" target="right"onClick="top.document.getElementById('topTitle').innerHTML='在线手册';">在线手册</a></td>
			</tr>
            <tr>
			  <td height="24"></td>
			  <td><img src="../images/icon/left_menu_icon.gif" alt="" border="0"></td>
			  <td><a >版本:MartechinaWeb V1.0</a></td>
			</tr>
			<tr>
			  <td colspan="3" height="5"></td>
			</tr>
		  </table>
		  <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td height="2"><img src="../images/left_menu_line.gif" alt="" border="0" align="absmiddle"></td>			  
			</tr>
		  </table>
		</div>
		</span>
<%
	end if
%>	
		</td>
      </tr>
</table> 
</div>
</body>
</html>
<%
End Sub 
%>